package cn.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 板块表
 * </p>
 *
 * @author samwuu
 * @since 2019-04-26
 */
@TableName("info_board")
public class InfoBoard extends Model<InfoBoard> {

    private static final long serialVersionUID = 1L;

    /**
     * 板块ID
     */
    @TableId(value = "board_id", type = IdType.AUTO)
    private Integer boardId;
    /**
     * 父板块，0就是第一级 
     */
    @TableField("parent_board_id")
    private Integer parentBoardId;
    private String title;
    private String detail;
    /**
     * 标签
     */
    private String tags;
    /**
     * 图片url
     */
    @TableField("cover_url")
    private String coverUrl;
    /**
     * 板块层级 0为最上层
     */
    private Integer level;
    @TableField("other_info")
    private String otherInfo;
    @TableField("collect_num")
    private Integer collectNum;
    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;


    public Integer getBoardId() {
        return boardId;
    }

    public void setBoardId(Integer boardId) {
        this.boardId = boardId;
    }

    public Integer getParentBoardId() {
        return parentBoardId;
    }

    public void setParentBoardId(Integer parentBoardId) {
        this.parentBoardId = parentBoardId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getOtherInfo() {
        return otherInfo;
    }

    public void setOtherInfo(String otherInfo) {
        this.otherInfo = otherInfo;
    }

    public Integer getCollectNum() {
        return collectNum;
    }

    public void setCollectNum(Integer collectNum) {
        this.collectNum = collectNum;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.boardId;
    }

    @Override
    public String toString() {
        return "InfoBoard{" +
        ", boardId=" + boardId +
        ", parentBoardId=" + parentBoardId +
        ", title=" + title +
        ", detail=" + detail +
        ", tags=" + tags +
        ", coverUrl=" + coverUrl +
        ", level=" + level +
        ", otherInfo=" + otherInfo +
        ", collectNum=" + collectNum +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
